package com.iogogogo.supervisord4j.base;

/**
 * Created by tao.zeng on 2022/1/5.
 */
public enum ResultCode {

    UNKNOWN(9999, "未知异常"),
    PARAM_FAILURE(4000, "参数异常");

    private final int code;

    private final String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
